/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net;

import java.io.Serializable;

/**
 * 
 * @author Lerta-D
 */
public class Transaction implements Serializable {

	private static final long serialVersionUID = 1L;
	public static final int DOWNLOAD_FILE = 1;
	public static final int UPLOAD_FILE = 0;
	public static final int DELETE_FILE = 2;
	public static final int MESSAGE = 3;
	public static final int CREATE_GROUP = 4;
	public static final int CREATE_USER = 5;
	public static final int DELTE_GROUP = 6;
	
	private String filename;
	private SecurePackage sp;
	private int type;
	private String user;
	private String group;
	private int idFile;

	public Transaction(int type) {
		this.type = type;
	}

	public SecurePackage getSecurePackage() {
		return sp;
	}

	public void setSecurePackage(SecurePackage sp) {
		this.sp = sp;
	}

	public int getType() {
		return type;
	}

	public int getIdFile() {
		return idFile;
	}

	public void setIdFile(int idFile) {
		this.idFile = idFile;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}	
}
